#ifndef INC_COMMANDS_NODE_BATCHPUTCOMMAND_H
#define INC_COMMANDS_NODE_BATCHPUTCOMMAND_H

#include "nodecommand.h"

#include <string>
#include <map>
using namespace std;

#include <Poco/File.h>
using Poco::File;

namespace Commands {
	class BatchPutCommand : public NodeCommand
	{
		static string const NAME;
		static Command* makeCommand(string r, void* d);
		public:
			typedef map<string, File> Files;
			BatchPutCommand(Files const& files, NodeData* data = 0);
			virtual ~BatchPutCommand() {}

			string repr();

			string name();

			CommandCreator creator();

			void execute();
		protected:
			Document* toXML(Document* doc = 0);
		private:
			Files _files;
	};
}

#endif /* INC_COMMANDS_NODE_BATCHPUTCOMMAND_H */
